#Prueba de Puertos Con clase
from Ports import Ports

Puertos = Ports("PortConf.cf","Constantes.cf")
Puertos.SetPortConfig("PORT00","input")
Puertos.SetPortConfig("PORT01","input")
Puertos.SetPortConfig("PORT02","input")
Puertos.SetPortConfig("PORT03","output")
Puertos.SetPortConfig("PORT04","undef")
Puertos.SetPortConfig("PORT05","undef")
Puertos.SetPortConfig("PORT06","undef")
Puertos.SetPortConfig("PORT07","undef")
Puertos.SetPortConfig("PORT08","undef")
Puertos.SetPortConfig("PORT09","undef")
Puertos.SetPortConfig("PORT10","undef")
Puertos.SetPortConfig("PORT11","undef")
Puertos.SetPortConfig("PORT12","output")
Puertos.SetPortConfig("PORT13","output")
Puertos.SetPortConfig("PORT14","output")
Puertos.SetPortConfig("PORT15","output")
Puertos.SetPortConfig("PORT16","sensor")

print Puertos.BuscarPorTipo("input"
print ""
print Puertos.BuscarPorTipo("sensor")
print ""
print Puertos.BuscarPorTipo("output")
